package cc.rengu.redp.system.service;

import cc.rengu.redp.system.domain.User;
import com.baomidou.mybatisplus.extension.service.IService;


public interface CommonUserService extends IService<User> {

    /**
     * 通过用户名查找用户
     *
     * @param username username
     * @return user
     */
    User findByName(String username);

    /**
     * 从缓存中获取用户
     *
     * @param username 用户名
     * @return User
     */
    User getUserFromCache(String username) throws Exception;
}
